<template>
  <div>
    <h1>App</h1>
    <Child></Child>
  </div>
</template>
<script setup>
import { provide } from 'vue';
import Child from './Child.vue';
provide('foo', {
  name: 'code',
});

provide('event', {
  getData(data) {
    console.log(data);
  },
});
</script>
